<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
	<title>Nagpur Munciple Corporation - Google Mapping</title>
	<meta name="decorator" content="Admin_HeaderFooter" />
	<meta name="tab" content="feedback" />	
	<!--<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true_or_false&amp;key=ABQIAAAAu5uZUEWFf_PGLJL6oAB1ahSCNtSGhNoL_TN2FnCc3wIkczsEQxQd9JQdimODbNk5fsLXuxktQQylSQ" type="text/javascript"></script>-->

	<script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBl-1kmeYgZ8kS_L9_LqfeO481d_zKW6i4&sensor=false">
    </script>
	
	<script type="text/javascript">
	
	
	function deleteFeedback(id){
	  //alert('dfsdfsdf' + id); 
	  document.getElementById('id').value=id;
	  document.forms["viewFeedback"].action="deleteFeedback.action";
	  document.forms["viewFeedback"].submit();
	}
	
	</script>

</head>

  <body >
  <div id="mainCnt">
	<div>
<div id="container" >
<b></b>
</br>
<h2> View Feedback</h2>
</br>
<div>
<s:form id="viewFeedback" action="viewFeedbacks.action" >
<s:hidden id="id" name="feedback.id"/>
<s:set name="feedback" value="feedbackList" scope="request" />
<display:table name="feedback" id="row" class="dataTable" defaultsort="1"
	defaultorder="descending"  cellspacing="0" pagesize="10"
	decorator="org.displaytag.decorator.TotalTableDecorator">
	
    <display:column property="id" />
    <display:column property="createdOn" format="{0,date,dd-MM-yyyy}" />
    <display:column property="name" maxLength="50"/>
    <display:column property="email" maxLength="50"/>
    <display:column property="phone" maxLength="50"/>
    <display:column property="feedbackText" maxLength="50"/>
    <display:column  maxLength="25">
	<a href="javascript:deleteFeedback('<c:out value="${row.id}"/>')">Delete</a>
	</display:column>
	</display:table>
	</s:form>
</div>
</div>
</div></div>
</body>
</html>
